home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / PlainText / PTRoot.c < prev    next >
Text File  |  1994-01-25  |  2KB  |  74 lines

  1. /*---------------------------- PTroot.h ----------------------------
  2.     This is the header for the root file. It is only #included by the
  3.     root. The PTglobs.h file is generated from it.
  4.     
  5.     The contents of this file are:
  6.         1. Global definitions (these cannot be duplicated.)
  7.         
  8. ------------------------------------------------------------------------*/
  9.  
  10. #include "PlainText.h"
  11.  
  12. /* 1. Globals for PlainText.c; rescue stuff */
  13.  
  14. /* 2. Globals are declared here. */
  15. /*    2a. variables */
  16.  
  17.  
  18. MenuHandle DeskMenu;
  19. MenuHandle FileMenu;
  20. MenuHandle EditMenu;
  21. MenuHandle FindMenu;
  22. MenuHandle MarkMenu;
  23. MenuHandle WindowMenu;
  24. MenuHandle ConvertMenu;
  25.     
  26. Str255 gFindBuffer = "\p";
  27. Str255 gReplaceBuffer = "\p";
  28. Str255 gCommandLine = "";
  29.  
  30. Handle PTScratch;
  31.  
  32. short gPlainTextRefNum;
  33. short gSearchMethod = 0;
  34.  
  35. Boolean gPlainTextIsRunning = true;
  36. Boolean gSearchBackwards = false;
  37. Boolean gCaseSensitive = false;
  38. Boolean gWrapSearch = false;
  39. Boolean gUseWorksheet = true;
  40.  
  41. DocumentRecord Documents[MAXWINDS];
  42. DocumentPeek CurrentScrollDocument=0;
  43. DocumentPeek gPlainTextWSDoc=0;
  44. DocumentPeek gClipboardDoc=0;
  45. WindowPtr gTextWindowPosition=-1;
  46.  
  47. DialogRecord DlogStor;
  48. DialogRecord AuxDlogStor;
  49.     
  50. CTabHandle MyCMHandle=0;
  51. PaletteHandle DefaultPalette;
  52.     
  53. Rect DragBoundsRect;
  54. short NumWindows=0;
  55.     
  56. short NumFileTypes = 1;
  57. SFTypeList MyFileTypes = {'TEXT',
  58.                         0 ,0, 0 };
  59.  
  60. Boolean gHasColorQD;
  61. Boolean gMacPlusKBD;
  62. Boolean gInBackground;
  63. Boolean gDAonTop;
  64. short gLastScrapCount;
  65. /* OSType gClipType; */
  66. FSSpec DefaultSpecs;
  67. FSSpec HomeSpecs;
  68.  
  69. /* to pass an event record into ScrollAction */
  70. EventRecord *PassEvent;
  71.  
  72. unsigned long gSleepTime=0;
  73.  
  74.